package muse.frames;

import java.awt.*;
import javax.swing.*;
import muse.Frame;
import muse.widgets.MuseWidget;
import muse.widgets.TextboxWidget;

public class Customize extends Frame {

    JPanel optionsPane;
    TextboxWidget textPane;
    MuseWidget musePane;
    
    public Customize()
    {
        this.setLayout(new BorderLayout());
        JPanel all = new JPanel();
        JPanel top = new JPanel();
        JPanel bot = new JPanel();
        
        all.setLayout(new GridLayout(2,1,5,5)); //2 rows, 1 col, xpad, ypad
        all.add(top);
        all.add(bot);
        
        String[] opts = {"Option 1", "Option 2", "Option 3", "Option 4", "Back"};	
        JComboBox jcb = new JComboBox(opts);
        
        optionsPane = new JPanel();
        optionsPane.add(jcb);
        optionsPane.setBorder(BorderFactory.createLineBorder(Color.green));
        
        musePane = new MuseWidget();
        musePane.setBorder(BorderFactory.createLineBorder(Color.blue));
        
        textPane = new TextboxWidget();
      
        top.setLayout(new GridLayout(1,2,5,5));
        top.add(musePane);
        top.add(optionsPane);
        
        bot.setBorder(BorderFactory.createLineBorder(Color.black));
        bot.add(textPane);

        bot.setBorder(BorderFactory.createLineBorder(Color.red));
        this.add(all);
      
    }
}
